/*
 * This program illustrates the difference 
 * between int and double.
 *
 * Call this program Example3.java
 */
class Example3 {
    public static void main(String args[]) {
        int var; // this declares an int variable
        double x; // this declares a double variable

        var = 10; // assign var the value of 10

        x = 10.0; // assign x the value of 10.0

        System.out.println("Original value of var: " + var);
        System.out.println("Original value of x: " + x);
        System.out.println(); // outputs a blank line

        // Now, divide both by four
        var = var / 4;
        x = x / 4;

        System.out.println("var after division: " + var);
        System.out.println("x after division: " + x);
    }
}




